/*#dark-theme{
    border: 1px solid #68768a;
    border-radius: 50%;
    background: rgba(53, 75, 105, 0.5);
    width: 39px;
    height: 39px;
    display: inline-block;
}
#green-theme{
    border: 1px solid #68768a;
    border-radius: 50%;
    background: #f8f9fa;
    width: 39px;
    height: 39px;
    display: inline-block;
}*/

/* 设置滚动条的样式 */
::-webkit-scrollbar {width:5px;}
/* 滚动槽 */
::-webkit-scrollbar-track {-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);border-radius:10px;}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {border-radius:10px;background:rgba(0,0,0,0.1);-webkit-box-shadow:inset 0 0 6px rgba(72, 192, 164,0.5);}
::-webkit-scrollbar-thumb:window-inactive {background:rgba(72, 192, 164,0.4);}
::placeholder {color: #79879a; /* 文字颜色 */}

/*预定义样式，通过js动态生成dom时，加上指定类名*/
.dpn-message {font-family: "\5FAE\8F6F\96C5\9ED1", Helvetica, sans-serif;font-size: 16px;z-index: 99999;}
.dpn-message {box-sizing: border-box;position: fixed;top: -200px;left: 50%;transform: translateX(-50%);z-index: 99999;padding: 10px;padding-right: 32px;min-width: 22%;max-width: 50%;border-radius: 5px;transition: top .3s;}
/*info 消息*/
.dpn-message.dpn-info {background: #EDF2FC;border: 1px solid #EBEEF5;color: #909399;}
/*success消息*/
.dpn-message.dpn-success {background: #f0f9eb;border: 1px solid #54f006;color: #67C23A;}
/*error消息*/
.dpn-message.dpn-error {background: #fef0f0;border: 1px solid #fde2e2;color: #F56C6C;}
/*warning消息*/
.dpn-message.dpn-warning {background: #fdf6ec;border: 1px solid #faecd8;color: #E6A23C;}
.dpn-message .dpn-close {position: absolute;right: 8px;top: 50%;transform: translateY(-50%);width: 16px;height: 16px;line-height: 16px;text-align: center;font-style: normal;cursor: pointer;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background: #282C34;
    color: #48c0a4;
}
::placeholder {
    color: #79879a;
}
.container {
    /*max-width: 1200px;*/
    width: 96%;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.previous, 
.next{
    color: #48c0a4;
	font-size: 22px;
	font-weight: bold;
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}
.nav-right-button {
    padding: 9px;
    background-color: rgba(53,75,105,0.5);
    border: 1px solid #68768a;
    color: #48c0a4;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
}
.nav-left span {
    color: #cfe2f3;
    display: block;
    font-size: 16px;
}

.week-range {
    color: #777;
    font-size: 14px;
}

/* 月份选择器 */
#month-picker {
    border: 1px solid #68768a;
    background: rgba(53, 75, 105, 0.5);
    color: #cfe2f3;
    padding: 9px;
    border-radius: 6px;
    cursor: pointer;
}

/* 日历布局 */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    border: 1px solid #68768a;
    border-radius: 8px;
    padding: 10px;
    min-height: 120px;
    position: relative;
    /*background-color: #fff;*/
    transition: background-color 0.2s;
}
.calendar-day.today {
    border-color: #1890ff;
}
.calendar-day header {
    color: #555;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}
.calendar-day .centerContainer{
    display:flex;
    align-items:center;
    gap: 4px;
    left: 30%;
    position: absolute;
}

.calendar-day .date {
    color: #48c0a4;
    font-weight: bold;
}

.calendar-day .weekday {
    display: none;
}

/* 小加号按钮 */
.add-plan-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #48c0a4;
    color: white;
    border-radius: 50%;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    line-height: 16px;
}

/* 计划项 */
.plan-item {
    margin: 4px 0;
    padding: 6px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ff4d4f; /* 默认红色边框，表示未完成 */
}
.plan-item.completed {
    border-color: #52c41a !important;
    color: #52c41a;
    text-decoration: line-through;
}
.plan-item:hover {
    opacity: 0.8;
}
.plan-item .title {
    flex-grow: 1;
}
.plan-item .kcal {
    flex-grow: 1;
}
.plan-item .kcal,
.plan-item .time {
    font-size: 13px;
    color: #cfe2f3;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.hidden{
    display: none;
}

.modal-content {
    border: 1px solid #68768a;
    background: rgba(53, 75, 105, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 550px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #1890ff;
}

.modal-content label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    font-size: 14px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #68768a;
    background: rgba(53, 75, 105, 0.5);
    color: #cfe2f3;
    outline: none;
}

.modal-button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 30%;
}

.modal-button:hover {
    background-color: #0056b3;
}

/* 倒计时页面样式 */
.timer-container {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Courier New', monospace;
}

.timer-header {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #cfe2f3;
}

.next-exercise {
    font-size: 30px;
    margin-bottom: 30px;
    color: #cfe2f3;
}

.current-exercise {
    margin: 30px 0;
}

#exercise-name {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 50px;
    color: #48c0a4;
}

#countdown {
    font-size: 150px;
    color: gold;
    font-weight: bold;
}

#pause-resume {
    padding: 12px 24px;
    font-size: 18px;
    background-color: #f57c00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

#pause-resume:hover {
    background-color: #ef6c00;
}